.footer {
  background-color: var(--footer-bg-color);
  box-sizing: border-box;
  left: 0;
  position: relative;
  width: 100%;
  padding: 5rem 2rem;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-rows: repeat(4, auto);
  gap: 2rem;
  align-items: start;
  justify-content: space-between;
  grid-auto-flow: row;
  grid-template-areas:
    'logo about service .'
    'icons about service qrcode'
    'beian . . qrcode'
    '. . . .';
}

.logo {
  grid-area: logo;
  display: flex;
  justify-content: center;
}

.logo img {
  height: 4rem;
}

.icons {
  grid-area: icons;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-img{
  width: 120px !important;
  height: 120px !important;
}
.footer-icon {
  margin-right: 0.25rem;
  margin-left: 0.25rem;
  transition: all 0.2s ease-in-out;
  color: var(--icon-color);
}

.icons a:hover img {
  transform: scale(1.1);
  filter: brightness(120%);
}

.about {
  grid-area: about;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.service {
  grid-column: span 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.about h3,
.service h3 {
  margin-bottom: 1.5rem;
  font-size: 1.125rem;
  color: var(--text-bg-color);
}

.about a,
.service a {
  font-size: 0.875rem;
  margin-bottom: 1rem;
  transition: all 0.2s ease-in-out;
  color: var(--text-title-color);
  font-weight: 500;
  text-decoration: none;
}

.about a:hover,
.service a:hover {
  transform: scale(1.05);
  color: #1ea366;
}

.qrcode {
  grid-area: qrcode;
  margin-top: -100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 2rem;
  padding-top: 2rem; /* 增加高度 */
  border-radius: 20px;
  background: var(--footer-bg-color-1);
  box-shadow: 8px 8px 7px var(--footer-bg-color-2), -8px -8px 7px var(--footer-bg-color-3);
}

.qrcode img {
  height: 6rem; /* 拉长高度 */
}

.qrcode p {
  font-size: 0.875rem;
  margin-top: 1rem;
  text-align: center;
  color: var(--text-title-color);
}

.beian {
  grid-area: beian;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  font-size: 0.875rem;
  line-height: 1rem;
  text-align: center;
  color: var(--text-title-color);
  white-space: nowrap;
}
.beian-link {
  color: var(--text-title-color);
  text-decoration: none;
}
.beian-link:hover {
  color: #1ea366;
}
.banquan-link {
  color: var(--text-title-color);
  text-decoration: none;
}
.banquan-link:hover {
  color: #1ea366;
}

@media (max-width: 1101px) {
  .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 0.5fr 0.5fr 1fr 1fr 0.5fr;
    gap: 0px 0px;
    grid-template-areas:
      'logo logo'
      'icons icons'
      'about service'
      'qrcode qrcode'
      'beian beian';
  }
  .logo {
    justify-content: center;
  }
  .icons {
    justify-content: center;
  }
  .about,
  .service {
    align-items: center;
  }
  .about {
    grid-area: about;
  }
  .service {
    grid-area: service;
  }
  .qrcode {
    margin-left: 2rem;
    margin-right: 2rem;
    margin-top: 1rem;
  }
  .beian {
    margin-top: 3rem;
    justify-content: center;
    align-items: center;
    white-space: nowrap;
    margin-bottom: 2rem;
  }
}
